<?php
namespace Home\Controller;
use \Think\Controller;

class MemberController extends Controller{

	public function index(){
		$this->display();

	}

	public function add(){
		$model = D('member');

		if(!$model->create()){
			$this->error($model->getError());
			exit;
		}

		dump($data);
		
		if($model->add() > 0){
			echo "注册成功！";
		}else{
			echo "注册失败！";
		}

	}
}